Ext.define("SHApp.Sys.Department.Form", {
    extend: "BLBTSystem.Form",
    submitUrl: "api/department?format=json",
    winWidth: 300,
    winHeight: 250,
    layout: { type: "vbox", align: "stretch" },
    items: [{
        xtype: "textfield",
        fieldLabel: "ID",
        name: "Id",
        hidden: true
    }, {
        fieldLabel: "部门名称<span style='color:red'>*</span>",
        allowBlank: false,
        blankText: "部门名称不能为空",
        xtype: "textfield",
        name: "Name",
        maxLength: 50
    }, {
        fieldLabel: "级别<span style='color:red'>*</span>",
        allowBlank: false,
        blankText: "级别不能为空",
        xtype: "textfield",
        name: "Dlevel",
        maxLength: 50
    }, {
        fieldLabel: "上级部门<span style='color:red'>*</span>",
        allowBlank: false,
        blankText: "上级部门不能为空",
        xtype: "textfield",
        name: "ParentID",
        hidden: true,
        maxLength: 50
    }, {
        fieldLabel: "备注<span style='color:red'>*</span>",
        xtype: "textfield",
        name: "Remarks",
        maxLength: 200
    }],
    initComponent: function () {
        Ext.apply(this);
        this.callParent(arguments);
    }

})